import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/admin',
  name: 'admin',
  meta: {
    icon: 'ele-House',
    title: 'Dashboard',
    isShow: true,
    isValidate: true,
  },
  component: () => import('@/layouts/admin.vue'),
  redirect: '/admin/home',
  children: [
    {
      path: '/admin/home',
      name: 'admin_home',
      meta: {
        title: '工作台',
        isShow: true,
        isValidate: true,
      },
      component: () => import('@/views/admin/home.vue'),
    },
    {
      path: '/admin/tablePage',
      name: 'admin_tablePage',
      meta: {
        title: '表格/导出excel',
        isShow: true,
      },
      component: () => import('@/views/admin/tablePage.vue'),
    },
    {
      path: '/admin/tablePage-disuse',
      name: 'admin_tablePage-disuse',
      meta: {
        title: '表格（废弃）',
        isShow: false,
        keepAliveName: 'tablePage-disuse',
      },
      component: () => import('@/views/admin/tablePage-disuse.vue'),
    },
    {
      path: '/admin/draggable',
      name: 'admin_draggable',
      meta: {
        title: '拖拽',
        isShow: true,
        keepAliveName: 'draggable',
      },
      component: () => import('@/views/admin/draggable.vue'),
    },
    {
      path: '/admin/wangEditor',
      name: 'admin_wangEditor',
      meta: {
        title: '富文本编辑器',
        isShow: true,
        keepAliveName: 'wangEditor',
      },
      component: () => import('@/views/admin/wangEditor.vue'),
    },
    {
      path: '/admin/xgplayer',
      name: 'admin_xgplayer',
      meta: {
        title: '视频播放器',
        isShow: true,
        keepAliveName: 'xgplayer',
      },
      component: () => import('@/views/admin/xgplayer.vue'),
    },
    {
      path: '/admin/map',
      name: 'admin_map',
      meta: {
        title: '高德地图',
        isShow: true,
      },
      component: () => import('@/views/admin/map.vue'),
    },
  ],
} as RouteRecordRaw;
